# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Alexander F Rødseth <xyproto@archlinux.org>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Antonio Rojas <arojas@archlinux.org>

pkgname=kshutdown
pkgver=5.2
pkgrel=1
pkgdesc='Shutdown Utility'
arch=(loong64 x86_64)
url='https://kshutdown.sourceforge.net/'
license=(GPL)
depends=(knotifyconfig kidletime hicolor-icon-theme)
makedepends=(extra-cmake-modules)
source=("https://downloads.sourceforge.net/$pkgname/KShutdown/$pkgver/$pkgname-source-$pkgver.zip")
sha256sums=('1ae0911b734a0d7eb12469ca95f066fb4d52c7880c2e9f1b692b236fd08337df')

prepare() {
  mkdir -p build
}

build() {
  cd build
  cmake ../$pkgname-$pkgver
  make
}

package() {
  cd build
  make DESTDIR="$pkgdir" install
}
